package cn.cdeden.system.service;

import cn.cdeden.system.domain.FilesLabel;
import cn.cdeden.system.domain.FilesUserLabel;
import cn.cdeden.system.domain.dto.FilesLabelDto;
import cn.cdeden.system.domain.dto.FilesLabelQueryParam;
import com.baomidou.mybatisplus.extension.service.IService;
import io.undertow.util.BadRequestException;

import java.util.List;
import java.util.Set;

public interface FilesUserLabelService extends IService<FilesUserLabel>{



    FilesLabel getById(Long id);

    FilesLabelDto findById(Long id);


    boolean updateById(FilesLabelDto resources) throws BadRequestException;

    boolean deleteByIdsAndType(Set<Long> ids, String labelType );


    /**
     * @Description // 查询系统的标签
     * @param query
     * @return java.util.List<com.cdyd.ecm.modules.label.domain.dto.FilesUserLabelDto>
     **/
    List<FilesLabelDto> queryAllSys(FilesLabelQueryParam query);


    FilesLabelDto insert(FilesLabelDto resources) throws BadRequestException;


    boolean labelNameRepeat(String userId, String username, String labelName, String labelType, Long parentId, Long id, String libraryId);
}
